import httpInstance from "@/utils/http"

export const  getTopCategoryAPI = (id) => {
  return httpInstance.get('/category',{
    params:{id}
  })
}

//二级分类
export const getCategoryFilterAPI = (id) => {
  return httpInstance.get('/category/sub/filter',{
    params:{id}
  })
}

//二级分类数据
export const getSubCateGoryAPI = (data) => {
  return httpInstance.post('/category/goods/temporary',
  data
  )
}